package hxg.com;

/**
 * @author HeXiangGuang
 * @create 2021-06-16 22:43
 */
public class Demo {
    public static void main(String[] args) {

        System.out.println(isPalindrome1(12321));
    }
    public static boolean isPalindrome1(int x){
        String str = new StringBuilder(x+"").reverse().toString();
        return str.equals(x+"");
    }
}
